package com.liangwj.springbootdesignpatterns.structureTypePatterns.bridge.demo_2.car;

import com.liangwj.springbootdesignpatterns.structureTypePatterns.bridge.demo_2.transmission.Transmission;

/**
 * <b>Description:</b> 抽象车对象--车维度 <br/>
 * @author Lingwenjun
 * @date 2019/1/23-17:36
 * @version 1.0
 */
//抽象车维度
public abstract class AbstractCar {

    //抽象变速器维度
    protected Transmission gear;

    public abstract void run();

    //也可以用构造方法赋值
    public void setTransmission(Transmission gear) {
        this.gear = gear;
    }
}
